Timm Bäder [Tue, 27 Jun 2017 09:11:57 +0000 (11:11 +0200)]
iconview: Remove bin_window
Timm Bäder [Mon, 26 Jun 2017 12:50:48 +0000 (14:50 +0200)]
entry: Fix node ordering
Fix the icon order
Timm Bäder [Mon, 26 Jun 2017 12:23:36 +0000 (14:23 +0200)]
testsuite: Update expected css node output
Timm Bäder [Mon, 26 Jun 2017 10:02:17 +0000 (12:02 +0200)]
paned: Remove assertion in get_child_property
Passing the third child (the pane separator) is possible and shouldn't
cause the process to abort.
Timm Bäder [Mon, 26 Jun 2017 10:00:20 +0000 (12:00 +0200)]
main: Protect against non-GtkWindow toplevels
Timm Bäder [Mon, 26 Jun 2017 09:48:33 +0000 (11:48 +0200)]
inspector: Use GtkWidget::pick when picking widgets
Timm Bäder [Sun, 25 Jun 2017 17:01:41 +0000 (19:01 +0200)]
container: Remove get_children_clip
Unused.
Timm Bäder [Sun, 25 Jun 2017 17:00:30 +0000 (19:00 +0200)]
stack: Compute clip directly
Timm Bäder [Sun, 25 Jun 2017 16:55:42 +0000 (18:55 +0200)]
buttonbox: Compute clip directly
Timm Bäder [Sun, 25 Jun 2017 16:51:31 +0000 (18:51 +0200)]
modelbutton: Compute clip directly
Timm Bäder [Sun, 25 Jun 2017 16:51:23 +0000 (18:51 +0200)]
flowbox: Compute clip directly
Timm Bäder [Sun, 25 Jun 2017 16:27:10 +0000 (18:27 +0200)]
spinbutton: Fix gesture state
We claimed the gesture previously to keep it from propagating to the
underlying entry, but now that the entry is in a box with the two
buttons, we can do this properly and restore the previous long-press
behavior.
Timm Bäder [Sat, 24 Jun 2017 05:47:55 +0000 (07:47 +0200)]
checkmenuitem: Fix indicator state
We need to remove the inconsistent and checked state first so we
actually remove it.
Timm Bäder [Sat, 24 Jun 2017 05:46:19 +0000 (07:46 +0200)]
widget-factory: Show the status bar by default
Since the action is also active by default.
Timm Bäder [Fri, 23 Jun 2017 18:33:52 +0000 (20:33 +0200)]
testnotebookdnd: quit when the toplevel gets closed
Timm Bäder [Wed, 21 Jun 2017 19:31:08 +0000 (21:31 +0200)]
menu: Popup at window coordinates if widget is given
Since widget allocations are now relative to the parent's origin, we
need to pass the window allocation here.
Timm Bäder [Wed, 21 Jun 2017 15:54:47 +0000 (17:54 +0200)]
window: Don't use allocated size in snapshot
Those are the wrong values.
Timm Bäder [Wed, 21 Jun 2017 11:25:41 +0000 (13:25 +0200)]
popover: Create subsurface on wayland
Timm Bäder [Wed, 21 Jun 2017 10:15:47 +0000 (12:15 +0200)]
widget: Fix drawing invalidation with windowed widgets
E.g. popovers. Find the parent of the given widget with the window and
invalidate the given region in that window.
Timm Bäder [Wed, 21 Jun 2017 10:14:00 +0000 (12:14 +0200)]
popover: "Fix" child allocation
This is still wrong but will be fixed in the future.
Timm Bäder [Wed, 21 Jun 2017 09:49:53 +0000 (11:49 +0200)]
window: Stop wrapping popovers in another window
GtkPopover is already a windowed widget.
Timm Bäder [Sun, 18 Jun 2017 13:45:42 +0000 (15:45 +0200)]
Replace a few get_content_allocation calls with get_content_size
The position of the content allocation is almost never relevant since
it's 0/0 for measure, size_allocate and snapshot.
Timm Bäder [Sun, 18 Jun 2017 11:17:00 +0000 (13:17 +0200)]
Remove all widget style property code
Timm Bäder [Sun, 18 Jun 2017 10:54:27 +0000 (12:54 +0200)]
treeviewaccessible: Don't rely on nonexistent style properties
The expander-size style property has been gone for a long time.
Timm Bäder [Sun, 18 Jun 2017 10:52:20 +0000 (12:52 +0200)]
adwaita: Remove style properties
They don't exist anymore.
Timm Bäder [Sun, 18 Jun 2017 10:51:23 +0000 (12:51 +0200)]
notebook: Remove style properties
Hardcode the default values until someone comes up with a proposal for a
better way.
Timm Bäder [Sun, 18 Jun 2017 10:46:30 +0000 (12:46 +0200)]
calendar: Remove style properties
Hardcode the default values until someone comes and fixes the actual
widget.
Timm Bäder [Sun, 18 Jun 2017 10:29:59 +0000 (12:29 +0200)]
widget: Remove _set_simple_clip
Unused.
Timm Bäder [Sun, 18 Jun 2017 10:29:49 +0000 (12:29 +0200)]
spinner: Use get_content_size
Timm Bäder [Sun, 18 Jun 2017 10:25:39 +0000 (12:25 +0200)]
pathbar: Compute widget clip directly
Instead of relying on gtk_widge_set_simple_clip
Timm Bäder [Sun, 18 Jun 2017 10:21:34 +0000 (12:21 +0200)]
toolitem: Remove size_allocate implementation
A GtkToolItem is a GtkBin and that already does exactly what this
implementation did.
Timm Bäder [Sun, 18 Jun 2017 08:15:06 +0000 (10:15 +0200)]
widget: Transform clips into right coordinate space
The values passed to gtk_widget_set_clip are relative to the widget's
origin, but we need the values to be relative to priv->allocation.
Timm Bäder [Sun, 18 Jun 2017 08:13:11 +0000 (10:13 +0200)]
paned: Draw handle separator at the right location
Timm Bäder [Sun, 18 Jun 2017 08:10:51 +0000 (10:10 +0200)]
paned: Make sure we set the correct clips
They are still too big, i.e. clipped-off children enlarge the paned's
clip but at least redrawing works and smaller clips are just an
optimization.
Timm Bäder [Sat, 17 Jun 2017 12:18:14 +0000 (14:18 +0200)]
switch: Remove in_switch flag
It's pretty simple and less code to just check whether the gesture
coords are inside the widget at the one place where we actually used the
flag.
Timm Bäder [Sat, 17 Jun 2017 12:13:29 +0000 (14:13 +0200)]
widget: Consider opacity when drawing toplevels
This used to work in gtk3 and is used e.g. in the inspector when using
wayland.
Timm Bäder [Sat, 17 Jun 2017 11:16:50 +0000 (13:16 +0200)]
switch: Fix handle dragging with padding applied
We only move the handle inside the content allocation, so we need to use
the content width when calculating the new handle_pos.
Timm Bäder [Sat, 17 Jun 2017 08:59:03 +0000 (10:59 +0200)]
layout: Remove bin_window
Timm Bäder [Sat, 17 Jun 2017 08:55:47 +0000 (10:55 +0200)]
fixed: Remove window
Timm Bäder [Sat, 17 Jun 2017 07:27:03 +0000 (09:27 +0200)]
button: Fix in_button checks
The gesture coords are relative to the button's origin, so use
gtk_widget_get_own_allocation to check if the coords are inside the
button.
Timm Bäder [Sat, 17 Jun 2017 06:54:59 +0000 (08:54 +0200)]
expander: Fix pressed_in_title check
gesture coords are relative to the expander widget, the title allocation
is relative to the box child.
Timm Bäder [Sat, 17 Jun 2017 06:19:30 +0000 (08:19 +0200)]
Remove GtkCssGadget
Timm Bäder [Sat, 17 Jun 2017 06:39:43 +0000 (08:39 +0200)]
iconhelper: Inherit from GObject
Nothing is using any gadget API on iconhelpers anymore.
Timm Bäder [Sat, 17 Jun 2017 06:15:04 +0000 (08:15 +0200)]
spinbutton: Remove unused import
Timm Bäder [Sat, 17 Jun 2017 06:08:18 +0000 (08:08 +0200)]
scrolledwindow: Fix indicator hiding
Only hiding the indicator if the widget is not mapped won't work.
Timm Bäder [Sat, 17 Jun 2017 05:14:38 +0000 (07:14 +0200)]
checkmenuitem: Fix indicator allocation
base point is the menu item's content allocation now.
Timm Bäder [Fri, 16 Jun 2017 16:16:27 +0000 (18:16 +0200)]
range: Fix slider allocation
Timm Bäder [Fri, 16 Jun 2017 16:08:04 +0000 (18:08 +0200)]
widget: Add new allocation accessors
Timm Bäder [Fri, 16 Jun 2017 13:30:52 +0000 (15:30 +0200)]
Remove GtkCssCustomGadget
Unused.
Timm Bäder [Fri, 16 Jun 2017 13:27:08 +0000 (15:27 +0200)]
entry: Replace progress gadget with a progressbar
Timm Bäder [Fri, 16 Jun 2017 13:22:59 +0000 (15:22 +0200)]
scrollbar: notify when setting the orientation
Timm Bäder [Fri, 16 Jun 2017 13:22:04 +0000 (15:22 +0200)]
GtkAccelLabel: Add use-underline property
Timm Bäder [Fri, 16 Jun 2017 12:33:58 +0000 (14:33 +0200)]
spinbutton: Fix property notification
Timm Bäder [Fri, 16 Jun 2017 12:31:54 +0000 (14:31 +0200)]
cssprovider test: Remove style property test case
It's getting harder and harder to find a dummy style property to use
here, so remove the test case since style properties should be going
away soon anyway.
Timm Bäder [Fri, 16 Jun 2017 09:19:52 +0000 (11:19 +0200)]
entry: Use images for icons
Timm Bäder [Fri, 16 Jun 2017 09:19:44 +0000 (11:19 +0200)]
image: Add private _get_definition
Timm Bäder [Thu, 15 Jun 2017 15:04:42 +0000 (17:04 +0200)]
label: Fix layout snapshot coordinates
No need to convert anything to "window coordinates" anymore.
Timm Bäder [Thu, 15 Jun 2017 14:03:08 +0000 (16:03 +0200)]
scrolledwindow: Fix scrollbar allocations
Use the content size everywhere. Fixes scrollbar positions with padding
and/or css borders applied to the scrolledwindow.
Timm Bäder [Thu, 15 Jun 2017 10:49:31 +0000 (12:49 +0200)]
scrolledwindow: Fix on_scrollbar check
The event widget is always the toplevel window, so use the event target
and check the GtkScrollbar ancestor.
Timm Bäder [Thu, 15 Jun 2017 10:49:18 +0000 (12:49 +0200)]
range: Use a gizmo as slider
No need for this to be a GtkIcon.
Timm Bäder [Thu, 15 Jun 2017 08:28:58 +0000 (10:28 +0200)]
entry: get_layout_location coords are already content relative
Timm Bäder [Wed, 14 Jun 2017 16:30:19 +0000 (18:30 +0200)]
image: Fold gtk_image_reset into only caller
Timm Bäder [Tue, 6 Jun 2017 09:00:46 +0000 (11:00 +0200)]
widget: Avoid some type checks in snapshot_child
Timm Bäder [Mon, 5 Jun 2017 09:48:13 +0000 (11:48 +0200)]
menu: Remove bin_window and view_window
Timm Bäder [Mon, 5 Jun 2017 09:25:21 +0000 (11:25 +0200)]
modelmenuitem: Fix type checking assertions
GtkAccelLabel is not a GtkLabel anymore
Timm Bäder [Mon, 5 Jun 2017 09:22:11 +0000 (11:22 +0200)]
iconview: Stop drawing a background
GtkWidget is doing that automatically now.
Timm Bäder [Sun, 4 Jun 2017 18:13:26 +0000 (20:13 +0200)]
sizerequest: Assert that min_size >= 0
This should generally be true, so remove the checks from gtkbox.c and
move it into gtksizerequest.c
Timm Bäder [Sun, 4 Jun 2017 16:57:18 +0000 (18:57 +0200)]
revealer: Fix DOWN and RIGHT transition types
Since we lost the bin_window, we now have to allocate the child widget
at a negative position when using these transition types.
Timm Bäder [Sun, 4 Jun 2017 16:33:08 +0000 (18:33 +0200)]
revealer: Request child size for NONE transition type
Previously, we would request a size of 0×0 when the transition type was
NONE and the child un-revealed, making the revealer in this case a
gtk_widget_set_visible replacement. Instead, to the exact same thing we
do in the CROSSFADE case and request the child size instead. This also
keeps the revealer from under allocating the child when the transition
type is set to NONE.
Timm Bäder [Sun, 4 Jun 2017 15:30:40 +0000 (17:30 +0200)]
stack: Remove bin_window
Timm Bäder [Sun, 4 Jun 2017 15:08:05 +0000 (17:08 +0200)]
revealer: Remove bin_window
Timm Bäder [Sun, 4 Jun 2017 15:03:17 +0000 (17:03 +0200)]
toolitemgroup: Remove child window
Timm Bäder [Sat, 3 Jun 2017 12:38:56 +0000 (14:38 +0200)]
popover: Remove useless if case
rect is not nullable, so stop checking if it is NULL and instead add a
g_return_val_if_fail guard.
Timm Bäder [Sat, 3 Jun 2017 09:16:54 +0000 (11:16 +0200)]
widget: "fix" event and invalidation coordinates
Timm Bäder [Fri, 2 Jun 2017 20:08:22 +0000 (22:08 +0200)]
testwidgetfocus: Drop SPACING constant in favor for CSS
This makes it easier to test various other properties of widgets.
Timm Bäder [Fri, 2 Jun 2017 16:24:38 +0000 (18:24 +0200)]
window: Remove dead code
This case can never happen since GtkWindow instances never have a
parent.
Timm Bäder [Tue, 30 May 2017 18:06:20 +0000 (20:06 +0200)]
image: Fix snapshot position
Timm Bäder [Tue, 30 May 2017 15:44:05 +0000 (17:44 +0200)]
entry: Fix text position
Timm Bäder [Tue, 30 May 2017 14:20:01 +0000 (16:20 +0200)]
widget: Adapt translate_coordinates to coordinate changes
Timm Bäder [Tue, 30 May 2017 11:32:37 +0000 (13:32 +0200)]
scrolledwindow: fix scrollbar allocation
Timm Bäder [Fri, 26 May 2017 19:00:12 +0000 (21:00 +0200)]
paned: Remove useless queue_resize calls
This is done by gtk_widget_unparent nowadays
Timm Bäder [Fri, 26 May 2017 18:49:10 +0000 (20:49 +0200)]
paned: Reimplement handle dragging
Timm Bäder [Sat, 27 May 2017 15:30:01 +0000 (17:30 +0200)]
icon: Stop offset'ing in snapshot
The snapshot is not offset to the content allocation when ->snapshot is
called.
Timm Bäder [Sat, 27 May 2017 15:31:05 +0000 (17:31 +0200)]
frame: Fix child allocation
Don't add the parent's allocation from gtk_widget_get_allocation
Timm Bäder [Sat, 27 May 2017 13:19:44 +0000 (15:19 +0200)]
widget: Make allocations parent-content-allocation relative
Timm Bäder [Sat, 27 May 2017 12:39:54 +0000 (14:39 +0200)]
widget: Remove queue_draw_child vfunc
Timm Bäder [Sat, 27 May 2017 10:41:30 +0000 (12:41 +0200)]
viewport: Remove bin_window
Timm Bäder [Sat, 27 May 2017 07:47:56 +0000 (09:47 +0200)]
scrolledwindow: Properly remove scrollbars
Instead of keeping an extra ref, then unparent+destroy+unref, don't keep
an extra ref and just unparent the scrollbar when appropriate.
Timm Bäder [Fri, 26 May 2017 10:51:37 +0000 (12:51 +0200)]
listbox: Remove manual prelight row management
This works automatically now.
Timm Bäder [Fri, 26 May 2017 10:48:13 +0000 (12:48 +0200)]
switch: Remove manual PRELIGHT code
This works automatically now
Timm Bäder [Fri, 26 May 2017 10:13:43 +0000 (12:13 +0200)]
listbox: Remove view_window
Timm Bäder [Thu, 25 May 2017 15:34:23 +0000 (17:34 +0200)]
scrollbar: Add new API to gtk4-sections.txt
and update the css node docs
Timm Bäder [Thu, 25 May 2017 15:15:38 +0000 (17:15 +0200)]
bin: Drop priv pointer
Timm Bäder [Thu, 25 May 2017 06:40:00 +0000 (08:40 +0200)]
filechooserwidget: Fix save widgets
Now that GtkFileChooserWidget is not a GtkBox anymore, we can't just
gtk_box_pack_start child widgets to it.
Timm Bäder [Wed, 24 May 2017 16:49:57 +0000 (18:49 +0200)]
Remove some unneeded includes
Timm Bäder [Wed, 24 May 2017 14:21:45 +0000 (16:21 +0200)]
inspector: Allow picking children of GtkWidget classes
Timm Bäder [Wed, 24 May 2017 13:39:39 +0000 (15:39 +0200)]
accellabel: Inherit from GtkWidget
Use a box and 2 labels.
Timm Bäder [Wed, 24 May 2017 09:10:26 +0000 (11:10 +0200)]
textview: Use ::snapshot
Timm Bäder [Wed, 24 May 2017 08:24:13 +0000 (10:24 +0200)]
testtooltips: Add static tooltip
Just a widget class emulating the tooltip look by calling itself
"tooltip" in the css node tree and adding the .background style class.
Timm Bäder [Wed, 24 May 2017 08:24:00 +0000 (10:24 +0200)]
tooltipwindow: Remove unused define